package com.hex.ds.hdtp.core.app.common.enums;

import cn.hutool.core.util.StrUtil;

public enum CrossDbContrastScene {
    TODAY("TODAY"),
    YESTERDAY("YESTERDAY"),
    ENDOFLASTMONTH("ENDOFLASTMONTH"),
    FULL("FULL");

    private String name;

    CrossDbContrastScene(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public static CrossDbContrastScene getByNameIgnoreCase(String name) {
        for (CrossDbContrastScene scene : values()) {
            if (StrUtil.equalsAnyIgnoreCase(scene.getName(),name)) {
                return scene;
            }
        }
        return null;
    }
}
